package com.manager.web;

import com.manager.pojo.User;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;

@RestController
@RequestMapping("/user")
public class UserController {
    @RequestMapping("/find")
    public User getUser(HttpSession session)

    {
        User user2 = (User) session.getAttribute("user2");
        return user2;
    }
}
